from django.urls import re_path, path, include
from rest_framework import routers
from mysqldb import views as mv
from . import views

router = routers.DefaultRouter()
router.register(r"Sems", mv.AllinpaySemsMsgViewSet, basename="00短信请求")
router.register(r"DoLogin", views.BarsDoLoginViewSet, basename="01场所员工登录")
router.register(r"PlaceInfo", views.BarsPlaceInfoViewSet, basename="02场所信息")
router.register(r"PlaceStaff", views.BarsPlaceStaffViewSet, basename="03员工信息")
router.register(r"PlacePost", views.BarsPlaceStaffPostViewSet, basename="04员工在岗离岗")
router.register(r"StaffPost", views.ThisBarsPlaceStaffPostViewSet, basename="05自己在岗离岗")

urlpatterns = [
    path("", include(router.urls)),
]
